/*
 * @Author: 小蜜蜂 84537795@qq.com
 * @Date: 2022-06-08 11:48:17
 * @LastEditTime: 2023-04-25 15:28:40
 * @LastEditors: 小蜜蜂 84537795@qq.com
 * @Description: 
 * @FilePath: /handheld-terminal-app/lib/widget/common/drawer_buttons.dart
 * @CopyRight：小蜜蜂🐝  QQ：834537795
 */
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:material_collection_app/utils/utils.dart';

class DrawerButtons extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => MyState();
}

class MyState extends State<DrawerButtons> {
  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: false);

    return Align(
        alignment: Alignment.bottomCenter,
        child: Container(
            child: Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[
              Container(
                // margin: EdgeInsets.only(top: 70.w),
                child: SizedBox(
                  width: 250.w,
                  height: 76.w,
                  child: ElevatedButton(
                    onPressed: () {},
                    child: Container(
                      margin: EdgeInsets.only(left: 16.w),
                      child: Text(
                        '重置',
                        style: TextStyle(color: Colors.white),
                      ),
                    ),
                    style: ElevatedButton.styleFrom(
                      backgroundColor: Utils.hexToColor('#FF9232'),
                      shape: RoundedRectangleBorder(
                          borderRadius: BorderRadius.horizontal(
                              left: Radius.circular(60.w))),
                    ),
                  ),
                ),
              ),
              Container(
                  // margin: EdgeInsets.only(top: 70.w),
                  child: SizedBox(
                      width: 250.w,
                      height: 76.w,
                      child: ElevatedButton(
                        onPressed: () {
                          Navigator.pop(context);
                        },
                        child: Container(
                          margin: EdgeInsets.only(left: 16.w),
                          child: Text(
                            '确定',
                            style: TextStyle(color: Colors.white),
                          ),
                        ),
                        style: ElevatedButton.styleFrom(
                            backgroundColor: Color(0xFF297CFF),
                            shape: RoundedRectangleBorder(
                                borderRadius: BorderRadius.horizontal(
                                    right: Radius.circular(60.w)))),
                      )))
            ])));
  }
}
